home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 05 - 1989 / 05.08 Aug 89 / Installer Source / SampleProc.r < prev    next >
Encoding:
Text File  |  1989-05-21  |  2.0 KB  |  65 lines  |  [TEXT/MPS ]

  1. /*-------------------------------------------------------------------------
  2. #
  3. #    SampleProc Installer Script Resource Code
  4. #
  5. #    Create using with command:
  6. #        Rez -o SampleProc -t uins -c uins SampleProc.r
  7. #
  8. #    To Function correctly, Place it in the System Folder
  9. #        of the Installer Disk
  10. #
  11. #    Installs a Sample Resource into the Target Disk's
  12. #        System File.  Also it copies the Script into the
  13. #        Target Disk's System Folder so it can Install 
  14. #        itself elsewhere.  This Script could be used to
  15. #        install almost any type of Proc Resource, for
  16. #        example, WindowProc, MenuProc, ControlProc, etc.
  17. #
  18. -------------------------------------------------------------------------*/
  19.  
  20. #include "Types.r"
  21.  
  22. #include "SysTypes.r"
  23.  
  24. resource 'insc' (0, "") {
  25.     format0 {
  26.         "SampleProc (v1.0)",
  27.         "For the SampleProc Script, pressing the Install Button "
  28.         "installs the SampleProc Resource (Type 'XXXX', ID 0) "
  29.         "into the System File.  It also copies the SampleProc "
  30.         "Script into the System Folder.  Pressing the Remove Button, "
  31.         "deletes the Resource and the Script.  This Script must "
  32.         "be in the System Folder of the Installing Disk.  It "
  33.         "was created for MacTutor by Steve Sheets",
  34.         {    /* array FileList: 1 elements */
  35.             /* [1] */
  36.             DelRemove, DelInstall, Copy, doReplace, Old, noUpdateOnly,
  37.             RsrcFork, DataFork, needExist, nocrDate, typeCr,
  38.             'uins', 'uins', 0x0, "SampleProc"
  39.         },
  40.         {    /* array ResFileList: 1 elements */
  41.             /* [1] */
  42.             noDelRemove, noDelInstall, noCopy, doReplace, Old, noUpdateOnly,
  43.             noRsrcFork, noDataFork, needExist, nocrDate, typeCr,
  44.             'ZSYS', 'MACS', 0x0, "System",
  45.             {    /* array SrcFileList: 1 elements */
  46.                 /* [1] */
  47.                 noDelRemove, noDelInstall, noCopy, doReplace, Old, noUpdateOnly,
  48.                 noRsrcFork, noDataFork, needExist, nocrDate, typeCr,
  49.                 'uins', 'uins', 0x0, "SampleProc",
  50.                 {    /* array ResList: 1 elements */
  51.                     /* [1] */
  52.                     DelRemove, DelInstall, copy, doReplace, old, noUpdateOnly,
  53.                     noEvenIf, needExist, byID, 
  54.                     'XXXX', 0, 0, ""
  55.                 }
  56.             }
  57.         }
  58.     }
  59. };
  60.  
  61. /*    SampleProc Resource */
  62.  
  63. data 'XXXX' (0) {
  64. };
  65.